package com.xbongbong.pro.detailtab.vo;

import lombok.Getter;
import lombok.Setter;


/**
 * @author chunyang.qin
 * @version v1.0
 * @date 2020/11/16 10:13
 * @since v1.0
 */
@Setter
@Getter
public class MarketActivityEffectTargetVO {

    private static final long serialVersionUID = -4003883340245190085L;
    //线索数量
    private Integer clueCount;
    //有效线索数量
    private Integer effectiveClueCount;
    //转化线索数量
    private Integer transformedClueCount;
    //客户数量
    private Integer customerCount;
    //线索转客户转化率
    private String clueCustomerRate;
    //机会数量
    private Integer allOpportunityCount;
    //机会金额
    private Double allOpportunityAmount;
    //线索转机会转化率
    private String clueOpportunityRate;
    //赢单机会数量
    private Integer winOpportunityCount;
    //赢单机会金额
    private Double winOpportunityAmount;
    //合同数量
    private Integer allContractCount;
    //合同金额
    private Double allContractAmount;
    //线索转合同转化率
    private String clueContractRate;


    public MarketActivityEffectTargetVO(){

    }

    public MarketActivityEffectTargetVO(Integer clueCount, Integer effectiveClueCount, Integer transformedClueCount, Integer customerCount, String clueCustomerRate, Integer allOpportunityCount, Double allOpportunityAmount, String clueOpportunityRate, Integer winOpportunityCount, Double winOpportunityAmount) {
        this.clueCount = clueCount;
        this.effectiveClueCount = effectiveClueCount;
        this.transformedClueCount = transformedClueCount;
        this.customerCount = customerCount;
        this.clueCustomerRate = clueCustomerRate;
        this.allOpportunityCount = allOpportunityCount;
        this.allOpportunityAmount = allOpportunityAmount;
        this.clueOpportunityRate = clueOpportunityRate;
        this.winOpportunityCount = winOpportunityCount;
        this.winOpportunityAmount = winOpportunityAmount;
    }

    public Integer getClueCount() {
        return clueCount == null ? 0 : clueCount;
    }

    public Integer getEffectiveClueCount() {
        return effectiveClueCount == null ? 0 : effectiveClueCount;
    }

    public Integer getTransformedClueCount() {
        return transformedClueCount == null ? 0 : transformedClueCount;
    }

    public Integer getCustomerCount() {
        return customerCount == null ? 0 : customerCount;
    }

    public String getClueCustomerRate() {
        return clueCustomerRate == null ? "0" : clueCustomerRate;
    }

    public Integer getAllOpportunityCount() {
        return allOpportunityCount == null ? 0 : allOpportunityCount;
    }

    public Double getAllOpportunityAmount() {
        return allOpportunityAmount == null ? 0 : allOpportunityAmount;
    }

    public String getClueOpportunityRate() {
        return clueOpportunityRate == null ? "0" : clueOpportunityRate;
    }

    public Integer getWinOpportunityCount() {
        return winOpportunityCount == null ? 0 : winOpportunityCount;
    }

    public Double getWinOpportunityAmount() {
        return winOpportunityAmount == null ? 0 : winOpportunityAmount;
    }

    public Integer getAllContractCount() {
        return allContractCount == null ? 0:allContractCount;
    }

    public Double getAllContractAmount() {
        return allContractAmount == null ? 0:allContractAmount;
    }

    public String getClueContractRate() {
        return clueContractRate == null ? "0":clueContractRate;
    }
}
